//    EGDAint Open CNC - Arduino - Processing CNC Controling System
//    Copyright (C) 2011  Egídio Luís - snatheone@gmail.com
//
//    This program is free software: you can redistribute it and/or modify
//    it under the terms of the GNU General Public License as published by
//    the Free Software Foundation, either version 3 of the License, or 
//    any later version.
//
//    This program is distributed in the hope that it will be useful,
//    but WITHOUT ANY WARRANTY; without even the implied warranty of
//    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//    GNU General Public License for more details.
//
//    You should have received a copy of the GNU General Public License
//    along with this program.  If not, see <http://www.gnu.org/licenses/>.
    

import controlP5.*;
import processing.serial.*;
PImage i;
PGraphics icon = createGraphics(100, 100, JAVA2D);

void setup() {
  i =loadImage("icon.png");
  size(1000, 700);
  icon.beginDraw();
  icon.image(i, 0, 0);
  icon.endDraw();
  frame.setTitle("Open CNC Driller");
  // comment this out to turn OS chrome back on
  // frame.setUndecorated(true); 

  // comment this out to not have the window "float"
  //frame.setAlwaysOnTop(true); 

  frame.setIconImage(icon.image);

  iSetup();
}
void draw() {
  iDraw();
}


